package com.wlhlwl.main;

import com.shareData.chainMarket.WebSocketBack;
import io.netty.channel.ChannelHandlerContext;

/**
 * websocket
 */
public class RobotServer extends WebSocketBack {
    IRobot robot = new IRobot();

    @Override
    public void active(ChannelHandlerContext ctx){
        System.out.println("chenggong");
    }

    @Override
    public String getText(String message,ChannelHandlerContext ctx){
        System.out.println(message);
        String json = null;

        //json=robot.GetMsg2(message);
        json=robot.GetMsg1("123",message,"");

        System.out.println("json:"+json);
        return json;
    }
}
